package dailearn.config.controller;

import dailearn.config.service.ClientService;
import lombok.extern.java.Log;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 *
 * @author daify
 * @date 2019-07-03 10:55
 **/
@Log
@RestController
public class HystrixController {

    @Autowired ClientService clientService;

    @RequestMapping(value = "/hystrixGetService",method = RequestMethod.GET)
    public String getService() {
        return clientService.getService();
    }
    
}
